﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PopShops.Entities
{
    public class DealType
    {
        #region Public Properties

        [XmlAttribute("id")]
        public int DealTypeID { get; set; }
        [XmlAttribute("deal_count")]
        public long DealCount { get; set; }
        [XmlAttribute("name")]
        public string Name { get; set; }

        #endregion

        #region Ctor

        public DealType()
        { }

        public DealType(int id, string name, long deal_count)
        {
            this.DealTypeID = id;
            this.Name = name;
            this.DealCount = deal_count;
        }

        #endregion
    }

    [XmlRoot("deal_types")]
    public class DealTypes
    {
        public DealTypes()
        { }

        [XmlAttribute("total_count")]
        public long TotalCount { get; set; }

        [XmlElement("deal_type")]
        public List<DealType> DealTypeCollection { get; set; }
    }
}
